<?php  
class mconfig extends CI_model{ 
   public function __construct(){
        parent::__construct();
        $this->load->database();
    }
    
    public function get_One() {
        $this->db->where('cf_Id', 1);
        $query = $this->db->get('config');
        $data = $query->row();
        return $data;
    }

    public function editConfig ($data) {
        $this->db->where('cf_Id', 1);
        $this->db->update('config', $data); 
    }
} 
?>